/************************************************************
 * Project Name         [Thinking_In_Java]
 * File Name            [Soldier.java]
 * Creation Date        [23-Jul-2014]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ************************************************************/
package pkg_principles.lsp.example01;

/**
 * 
 * @author 不落的太阳(Sean Yang)
 * @version 1.0
 * @since JDK 6
 * 
 */
public class Soldier {

	private AbstractGun gun;

	public void setGun(AbstractGun gun) {
		this.gun = gun;
	}

	public void killEnenmy() {
		System.out.println("士兵开始杀人...");
		gun.shoot();
	}

}
